# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=pingcastle
pkgver=3.4.1.38
pkgrel=1
pkgdesc='Active Directory scanning tool.'
groups=('blackarch' 'blackarch-windows')
arch=('any')
makedepends=('unzip' 'curl')
url='https://www.pingcastle.com'
source=("$pkgname.zip::https://github.com/vletoux/pingcastle/releases/download/$pkgver/PingCastle_$pkgver.zip")
md5sums=('11071f81520729c6c70439184ed83702')
sha512sums=('977402302383f1e127c25997b89b8f23fe643f0c59bd07017f79f06d68af3865457031a573767d01d73ef20ae3c9b9d378565bd6dbe23df9f693eb861f2b1377')

package() {
  targetDir="$pkgdir/usr/share/windows/$pkgname/"

  install -dm 755 $targetDir

  unzip -d $targetDir "$pkgname.zip"
}

